package com.evan.designpatterns.factory.homework3.factory;

/**
 * @author :liujiapeng01
 * @date :2019-03-07 15:19
 **/
public class Test {
    public static void main(String[] args) {
        AbstractFoodFactory foodFactory=new BreadFactory();
        Food food = foodFactory.makeFood();
        System.out.println(food.getClass().getName());

        foodFactory=new NoodleFactory();
        food= foodFactory.makeFood();
        System.out.println(food.getClass().getName());

    }
}
